package com.online.robot.wechat.builder;

import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutImageMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;

public class ImageBuilder extends AbstractBuilder {

    @Override
    public WxMpXmlOutMessage build(Object obj, WxMpXmlMessage wxMessage) {
        return WxMpXmlOutImageMessage.IMAGE().mediaId(obj.toString()).fromUser(wxMessage.getToUser())
                .toUser(wxMessage.getFromUser()).build();
    }

}